package com.liyang.nacos.Controller;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Administrator
 * @version 1.0
 * @Title: TestController
 * @description TODO
 * @date 2021/4/24 0024 19:02
 */
@RestController

public class TestController {

    @Value("${common.name2}")
    private String config1;
    @GetMapping("/config2")
    public String getConfig1() {
        return config1;
    }


}